<?php
namespace app\user\controller;
use think\Db;
class Help extends Common
{
    public function helplist()
    {
    	$oid = 1;
        //获取帮助列表
        $info['help'] = Db::name('faq')
            ->where('oid',$oid)
            ->where('is_delete',1)
            ->select();
        if($info){
            return $info;
        }else{
            return '';
        }
    }
    //帮助详情
    public function helpinfo()
    {
        $oid = 1;
        $id = input('param.id');

    	//获取帮助详情
    	$info['help'] = Db::name('faq')
            ->where('oid',$oid)
    		->where('id',$id)
    		->find();
    	if($info){
            return $info;
        }else{
            return '';
        }

    }
    
}
